﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Page.Master" AutoEventWireup="true" CodeBehind="Changepass.aspx.cs" Inherits="HealthInsuranceMgm.Admin.Changepass" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    <script src="../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <link href="../Styles/styleJs.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript">
       $(document).ready(function () {
           $("#frmchangepass").validate({
               errorElement: "span",
               rules: {
                   txtconfirm: {
                       equalTo: "#txtnewpass"
                   }
               }

           });

       });
    </script>
<form id="frmchangepass" runat="server">
    <fieldset >
        <legend><h3>Change Password</h3></legend>
        <table>
            <tr>
                <td>Username:</td>
                <td style="width: 341px"><asp:TextBox ID="txtusername"  runat="server" 
                        ReadOnly="True"></asp:TextBox></td>
                
            </tr>
            <tr>
            <td>Old Password:</td>
                <td style="width: 341px"><asp:TextBox ID="txtoldpass"  CssClass="required" 
                        minlength="6" runat="server" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
            <td>New Password:</td>
            
            <td style="width: 341px"><asp:TextBox ID="txtnewpass"  CssClass="required" 
                    minlength="6" runat="server" TextMode="Password"></asp:TextBox></td>
             </tr>
            <tr>
            <td>Confirm Password:</td>
            
                <td style="width: 341px"><asp:TextBox ID="txtconfirm"  CssClass="required" 
                        minlength="6" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtnewpass" ControlToValidate="txtconfirm" 
                        CssClass="required" ErrorMessage="The Value not match " ForeColor="Red"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
            <td></td>
                <td style="width: 341px">
                    <asp:Button ID="btnchange" runat="server" Text="Change" 
                        onclick="btnchange_Click" />  
                    <asp:Button ID="btnreset" runat="server" Text="Reset" />  
                   
                </td>
            </tr>
        </table>
    </fieldset>
</form>
</asp:Content>
